package com.tring.ysyn.excel.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.tring.ysyn.excel.converter.GenderConverter;
import com.tring.ysyn.excel.converter.UserTypeConverter;
import lombok.Data;

import java.util.Date;

/**
 * @author Tring
 * date 2022-11-03
 */
@Data
@ColumnWidth(20)
public class UserExcelVo {


    @ExcelProperty("账号")
    private String userName;

    @ExcelProperty("昵称")
    private String nickName;

    /**
     * EasyExcel使用：自定义转换器
     */
    @ColumnWidth(10)
    @ExcelProperty(value = "性别", converter = GenderConverter.class)
    private Integer sex;

    @ExcelProperty("手机号码")
    private String phone;

    @ExcelProperty("邮箱")
    private String email;

    @ExcelProperty(value = "用户类型", converter = UserTypeConverter.class)
    private Integer userType;

}
